package com.zy.qudadid.ui.activity;

import android.os.Bundle;
import android.webkit.WebView;

import com.zy.lcpassenger.R;
import com.zy.qudadid.presenter.base.BasePresenterImp;
import com.zy.qudadid.ui.activity.base.ToolBarActivity;

import butterknife.Bind;

/**
 * Created by ninos on 2016/7/27.
 */
public class OwnWebActivity extends ToolBarActivity<BasePresenterImp>{

    @Bind(R.id.web)WebView web;

    private String tag="";

    @Override
    protected CharSequence provideTitle() {
        return "法律条款";
    }

    @Override
    protected void initThings(Bundle savedInstanceState) {
        super.initThings(savedInstanceState);

        tag = getIntent().getStringExtra("tag");

        if(tag.equals("1")) {
            tvTitle.setText("用户指南");
        }else{
            tvTitle.setText("法律条款");
        }

        web.loadUrl("http://139.196.5.108/api/Xy#");
    }

    @Override
    public BasePresenterImp createPresenter() {
        return null;
    }

    @Override
    protected int provideContentViewId() {
        return R.layout.activity_web;
    }

    @Override
    public void initListeners() {

    }

}
